package service;

import bean.HelloBean;
import dao.com.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService{
    @Resource
    UserMapper userMapper;

    @Override
    public int Insert(HelloBean helloBean) {
        userMapper.insert(helloBean);
        return helloBean.getId();
    }

    @Override
    public List<HelloBean> selectAllUser() {
        return userMapper.selectAllUser();
    }
}
